package com.example.demo.hutool.log;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;

import java.util.concurrent.*;

public class test {

    private static final Log log = LogFactory.get();


    public static void main(String[] args) {
        ThreadPoolExecutor executor = new ThreadPoolExecutor(1, 1, 100, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10000000));
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000000; i++) {
            log.info("sxm--->{}", i);
        }
        long end = System.currentTimeMillis();
        //25550
        System.out.println(end - start);
        System.out.println();
    }


}
